package com.yao.po;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.metadata.OrderItem;
import lombok.Data;

import java.util.List;

@Data
public class Page implements IPage<Flowers> {
    private Integer page= 1; //页码
    private Integer limit=10 ;// 每页请求的条数
    private Integer category1Id ;//-级分类 id
    private Integer category2Id ;//--二级分类 id


    public Page() {
    }

    public Page(Integer page, Integer limit, Integer category1Id, Integer category2Id) {
        this.page = page;
        this.limit = limit;
        this.category1Id = category1Id;
        this.category2Id = category2Id;
    }

    /**
     * 获取
     * @return page
     */
    public Integer getPage() {
        return page;
    }

    /**
     * 设置
     * @param page
     */
    public void setPage(Integer page) {
        this.page = page;
    }

    /**
     * 获取
     * @return limit
     */
    public Integer getLimit() {
        return limit;
    }

    /**
     * 设置
     * @param limit
     */
    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    /**
     * 获取
     * @return category1Id
     */
    public Integer getCategory1Id() {
        return category1Id;
    }

    /**
     * 设置
     * @param category1Id
     */
    public void setCategory1Id(Integer category1Id) {
        this.category1Id = category1Id;
    }

    /**
     * 获取
     * @return category2Id
     */
    public Integer getCategory2Id() {
        return category2Id;
    }

    /**
     * 设置
     * @param category2Id
     */
    public void setCategory2Id(Integer category2Id) {
        this.category2Id = category2Id;
    }

    public String toString() {
        return "Page{page = " + page + ", limit = " + limit + ", category1Id = " + category1Id + ", category2Id = " + category2Id + "}";
    }

    @Override
    public List<OrderItem> orders() {
        return List.of();
    }

    @Override
    public List<Flowers> getRecords() {
        return List.of();
    }

    @Override
    public IPage<Flowers> setRecords(List<Flowers> records) {
        return null;
    }

    @Override
    public long getTotal() {
        return 0;
    }

    @Override
    public IPage<Flowers> setTotal(long total) {
        return null;
    }

    @Override
    public long getSize() {
        return 0;
    }

    @Override
    public IPage<Flowers> setSize(long size) {
        return null;
    }

    @Override
    public long getCurrent() {
        return 0;
    }

    @Override
    public IPage<Flowers> setCurrent(long current) {
        return null;
    }
}
